package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.model.wemedia.vo.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface WmNewsMapper  extends BaseMapper<WmNews> {

    List<WmNewsVo> findDataList(@Param("dto") NewsAuthDto dto);


    Integer findTotal(@Param("dto")NewsAuthDto dto);

    WmNewsVo findNewsText(@Param("newsId") Integer newsId);
}
